﻿using Adnc.Application.Shared.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WYT.Ord.Application.Contracts.Dtos.ShopCart;

namespace WYT.Ord.Application.Contracts.Services
{
    /// <summary>
    /// 购物车模块
    /// </summary>
    public interface IShoppingCartAppService : IAppService
    {
        /// <summary>
        /// 添加商品到购物车
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<AppSrvResult> AddProduct(long UserId, ProductAddDto input);

        /// <summary>
        /// 删除购物车商品
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="Ids"></param>
        /// <returns></returns>
        Task<AppSrvResult> DeleteProduct(long UserId, long[] Ids);

        /// <summary>
        /// 修改购物车商品
        /// </summary>
        /// <returns></returns>
        Task<AppSrvResult> UpdateProduct(long UserId, ProductModifyDto input);

        /// <summary>
        /// 获取用户购物车商品信息
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="language"></param>
        /// <returns></returns>
        Task<AppSrvResult<List<ProductListDto>>> GetProductList(long UserId,string language);
    }
}
